<p>
  <b>Name:</b>
  <%=h @user.name %>
</p>

<p>
  <b>Email:</b>
  <% if @user.showmail then %>
    		<%= link_to @user.email, "mailto:"+@user.email %>
	<% else %>
			--not shown--
	<% end %>
	 <% if !@user.showmail and session[:user_id] == @user.id then %>
	 	(<%= @user.email %>)
	 <% end %>
</p>

<% if @user.homepage != "" then %>
	<p>
	  <b>Homepage:</b>
	  <%=link_to @user.homepage, @user.homepage %>
	</p>
<% end %>

<p>
  <b>Karma:</b>
  <%=h @user.karma %>
</p>

Tags:
<% for tag in @tags %>
    <% if(session[:user_id] == @user.id) then %> <%= link_to  tag.name  , :action => 'show' ,:controller => 'interests' ,:tag_id => tag.id , :user_id => @user.id %>  
    <% else %> 
    <%=h tag.name %>
    <% end %> |
	
<% end %>


<!-- User personal page: //-->
<div id="user_personal_page">
	<%= @user.decodedtext  %>
</div>


<br />
<% if(session[:user_id] == @user.id) then %> <%= link_to 'Edit', edit_user_path(@user) %> <% end %>
<%= link_to 'Back', users_path %>
<%= link_to 'start page',  "/start_page" %>
